package cn.wolfcode.car.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter@Setter
public class Employee {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String name;

    private String email;

    private Integer age;

    private Integer admin;

    private Integer status;

    private Long deptId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date hiredate;
    @TableField(exist = false)
    private Department deptName;
}